home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2009 February
/
PCWFEB09.iso
/
Software
/
Linux
/
Kubuntu 8.10
/
kubuntu-8.10-desktop-i386.iso
/
casper
/
filesystem.squashfs
/
var
/
lib
/
dpkg
/
info
/
kdm.postrm
< prev
next >
Wrap
Text File
|
2008-10-24
|
1KB
|
46 lines
#! /bin/sh -e
case "$1" in
purge)
rm -rf /var/log/kdm.log*
for DIR in /var/lib/kdm; do
if [ -d "$DIR" ]; then
rm -rf "$DIR"
fi
done
;;
abort-install|abort-upgrade)
# roll back displacement of default display manager file
if [ -e "$DEFAULT_DISPLAY_MANAGER_FILE.dpkg-tmp" ]; then
# FIXME - redo this part uses shell-lib.sh from xfree86
#observe "rolling back change of default X display manager"
mv "$DEFAULT_DISPLAY_MANAGER_FILE.dpkg-tmp" "$DEFAULT_DISPLAY_MANAGER_FILE"
fi
;;
remove|upgrade|failed-upgrade|disappear)
;;
*)
echo "postrm called with unknown argument \`$1'" >&2
exit 1
;;
esac
# Automatically added by dh_installdebconf
if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
. /usr/share/debconf/confmodule
db_purge
fi
# End automatically added section
# Automatically added by dh_installinit
if [ "$1" = "purge" ] ; then
update-rc.d kdm remove >/dev/null || exit $?
fi
# End automatically added section
exit 0